import request from '@/utils/request_zc'

export function getCarrierApplication ({
  page,
  limit,
  carryNo,
  outboundNo,
  deliveryNo,
  customerId,
  applyUser,
  applyStartDate,
  applyEndDate,
  applyStatus,
  approveUser,
  approveStartDate,
  approveEndDate,
  approveStatus
}) {
  return request({
    url: '/wms/carry/application/list',
    method: 'get',
    params: {
      page,
      limit,
      carryNo,
      outboundNo,
      deliveryNo,
      customerId,
      applyUser,
      applyStartDate,
      applyEndDate,
      applyStatus,
      approveUser,
      approveStartDate,
      approveEndDate,
      approveStatus
    }
  })
}

export function editCarrierApplication (data) {
  return request({
    url: '/wms/carry/application/edit',
    method: 'post',
    data
  })
}

export function getDetail ({ id }) { return request({ url: `/wms/carry/application/detail/${id}`, method: 'get' }) }


